import * as utils from "@/utils/index";
/**
 *注册用户
 */
export function register(username: any, pass: any) {
  return {};
}
export function getMenus() {
  const menus = [];
  menus.push({
    name: "首页",
    id: "home",
  });
  menus.push({
    name: "商品",
    id: "goods",
  });
  menus.push({
    name: "会员",
    id: "member",
  });
  menus.push({
    name: "订单",
    id: "order",
  });
  return menus;
}
export function getSubMenus(parent: string) {
  console.log(parent);
  const menus = [];
  const num = utils.random(3, 10);
  for (let i = 0; i < num; i++) {
    menus.push({
      name: `sub${i}`,
    });
  }
  return menus;
}
